package cn.tedu.tmall.admin.content.service;

import cn.tedu.tmall.admin.content.pojo.param.ArticleAddParam;
import cn.tedu.tmall.admin.content.pojo.vo.ArticleDetailVO;
import cn.tedu.tmall.admin.content.pojo.vo.ArticleListVO;
import cn.tedu.tmall.common.pojo.PageData;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 文章相关业务层
 */
@Transactional
public interface IArticleService {

    /**
     * 增加文章
     * @param articleAddParam ArticleAddParam
     */
    @Transactional
    void addArticle(ArticleAddParam articleAddParam);

    PageData<ArticleListVO> listArticle(Long categoryId, Integer pageNum, Integer pageSize);

    ArticleDetailVO detailArticle(Long articleId);
}
